const mongo = require('mongoose')

function init(config){
    mongo.connect(config.url, config.auth, function(err){
        console.log("mongodb连接")
        console.log(err);
    });
}

module.exports.init = init;
module.exports.mongo = mongo